package ooexercise01;


public class Chick extends Animal {
    /*
    Chick(String name, int age, String colour){
        super(name,age,colour);

    }

    void layEggs(){
        System.out.println(age+"岁的"+colour+"小鸡"+name+"在下蛋……");
    }

    void eat(){
        System.out.println(age+"岁的"+colour+"小鸡"+name+"在吃小米……");
    };

     */

    Chick(String name, int age, String colour){
        super(name,age,colour);

    }

    void layEggs(){
        System.out.println(age+"岁的"+colour+"小鸡"+name+"在下蛋……");
    }

    void eat(){
        System.out.println(age+"岁的"+colour+"小鸡"+name+"在吃小米……");
    };
}
